package com.pray.praymall.product.feign;

import com.pray.common.to.es.SkuEsModel;
import com.pray.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

/**
 * do something
 *
 * @author 魂悸魄
 * @date 2020/9/12 18:26
 */
@FeignClient("praymall-search")
public interface SearchFeignService {
    /**
     * 保存商品上架信息
     *
     * @param esModels 商品上架需要保存的数据集合
     * @return 标准返回体
     */
    @PostMapping("/search/save/product")
    R productStatusUp(@RequestBody List<SkuEsModel> esModels);
}
